var resource = {
	Main_Theme_mp3 : 'res/Music/Main Theme.mp3',
	click_wav : 'res/Music/click.wav',
	SysMenu_png : 'res/SysMenu/SysMenu.png',
	SysMenu_plist : 'res/SysMenu/SysMenu.plist',
    background_png : '#background.png',
    logoblank_png : '#logoblank.png',
    logofire_png : '#logofire.png',
    menubackground_png : '#menubackground.png',
    footman_standby_wav : 'res/Music/footman_standby.wav',
    tank_move_wav : 'res/Music/tank_move.wav',
    vs_png : 'res/Layout/vs.png',
    unlock_png : 'res/Layout/unlock.png',
    lock_png : 'res/Layout/lock.png',
    purchase_png : 'res/Layout/purchase.png',
    Layout_png : 'res/Layout/Layout.png',
    Layout_plist : "res/Layout/Layout.plist",
    ctrlbtnNormalZ_png : "res/Layout/ctrlbtnNormalZ.png",
    ctrlbtnDownZ_png : "res/Layout/ctrlbtnDownZ.png",
    ctrlbtnDisableZ_png : "res/Layout/ctrlbtnDisableZ.png",
    controlPanel_png: '#controlPanel.png',
    tile_png : '#tile.png',
    tile_real_png : "#tile_real.png",
    tile_s_png : '#tile_s.png',
    courtTileUp_png : '#courtTileUp.png',
    courtTileCenter_png : '#courtTileCenter.png',
    courtTileDown_png : '#courtTileDown.png',
    arrow_png: '#arrow.png',
    bomb_png: '#bomb.png',
    detect_png: '#detect.png',
    selectsymbol_png: '#selectsymbol.png',
    troopThrustAttack_png : "#troopThrustAttack.png",
    troopStopAndAttack_png : "#troopStopAndAttack.png",
    troopPositive_png : "#troopPositive.png",
    troopPassive_png : "#troopPassive.png",
    troopPassDown_png : "#troopPassDown.png",
    troopPassDownMeantime_png : "#troopPassDownMeantime.png",
    troopPassUp_png : "#troopPassUp.png",
    troopPassUpMeantime_png : "#troopPassUpMeantime.png",
    troopDefendDown_png : "#troopDefendDown.png",
    troopDefendDownMeantime_png : "#troopDefendDownMeantime.png",
    troopDefendUp_png : "#troopDefendUp.png",
    troopDefendUpMeantime_png : "#troopDefendUpMeantime.png",
    troopRest_png : "#troopRest.png",
    troopRestMeantime_png : "#troopRestMeantime.png",
    troopBtnNormal_png : "#troopBtnNormal.png",
    troopBtnDown_png : "#troopBtnDown.png",
    white1010_png : "res/Layout/white1010.png",
    scale9white100100_png : "res/Layout/scale9white100100.png",
    scale9black100100_png : "res/Layout/scale9black100100.png",
    scale9halfwhite100100_png : "res/Layout/scale9halfwhite100100.png",
    scale9halfblack100100_png : "res/Layout/scale9halfblack100100.png",
    rank_png : [
                "res/Layout/rank1.png",
                "res/Layout/rank2.png",
                "res/Layout/rank3.png",
                "res/Layout/rank4.png",
                "res/Layout/rank5.png",
                "res/Layout/rank6.png",
                "res/Layout/rank7.png",
                "res/Layout/rank8.png",
                "res/Layout/rank9.png"],
    underAttack_png: '#underAttack.png',
    passDown_png: '#passDown.png',
    passUp_png: '#passUp.png',
    defendDown_png: '#defendDown.png',
    defendUp_png: '#defendUp.png',
    miss_png: '#miss.png',
    flag_png: 'res/Layout/flag.png',
    defendLevel1_png: '#defendLevel1.png',
    defendLevel2_png: '#defendLevel2.png',
    defendLevel3_png: '#defendLevel3.png',
    passLevel1_png: '#passLevel1.png',
    passLevel2_png: '#passLevel2.png',
    passLevel3_png: '#passLevel3.png',
    adjutant_png: '#adjutant.png',
    flags_plist : 'res/Unit/flags.plist',
    flags_png : 'res/Unit/flags.png',
    units_aura_png : 'res/Unit/units_aura.png',
    units_airplane_png : 'res/Unit/units_airplane.png',
    units_cannon_png : 'res/Unit/units_cannon.png',
    units_cavalry_png : 'res/Unit/units_cavalry.png',
    units_flak_png : 'res/Unit/units_flak.png',
    units_footman_png : 'res/Unit/units_footman.png',
    units_landingship_png : 'res/Unit/units_landingship.png',
    units_missile_png : 'res/Unit/units_missile.png',
    units_missilelauncher_png : 'res/Unit/units_missilelauncher.png',
    units_motor_png : 'res/Unit/units_motor.png',
    units_parachute_png : 'res/Unit/units_parachute.png',
    units_satellite_png : 'res/Unit/units_satellite.png',
    units_spy_png : 'res/Unit/units_spy.png',
    units_submarine_png : 'res/Unit/units_submarine.png',
    units_tank_png : 'res/Unit/units_tank.png',
    units_warship_png : 'res/Unit/units_warship.png',
    tiles_grass_plist: 'res/Land/tiles_grass.plist',
    tiles_grass_png: 'res/Land/tiles_grass.png',
    tiles_urban_plist: 'res/Land/tiles_urban.plist',
    tiles_urban_png: 'res/Land/tiles_urban.png',
    tiles_water_plist: 'res/Land/tiles_water.plist',
    tiles_water_png: 'res/Land/tiles_water.png',
    tiles_river_plist: 'res/Land/tiles_river.plist',
    tiles_river_png: 'res/Land/tiles_river.png',
    tiles_forest_plist: 'res/Land/tiles_forest.plist',
    tiles_forest_png: 'res/Land/tiles_forest.png',
    ctrlbtnNormal_png: '#ctrlbtnNormal.png',
    ctrlbtnDown_png: '#ctrlbtnDown.png',
    ctrlbtnDisable_png: '#ctrlbtnDisable.png',
    ctrlbtnNormalR_png: '#ctrlbtnNormalR.png',
    ctrlbtnDownR_png: '#ctrlbtnDownR.png',
    ctrlbtnDisableR_png: '#ctrlbtnDisableR.png',
    ctrlbtnNormalS_png: '#ctrlbtnNormalS.png',
    ctrlbtnDownS_png: '#ctrlbtnDownS.png',
    ctrlbtnDisableS_png: '#ctrlbtnDisableS.png',
    ctrlbtnNormalV_png: '#ctrlbtnNormalV.png',
    ctrlbtnDownV_png: '#ctrlbtnDownV.png',
    ctrlbtnDisableV_png: '#ctrlbtnDisableV.png',
    menubtnNormal_png: '#menubtnNormal.png',
    menubtnDown_png: '#menubtnDown.png',
    menubtnDisable_png: '#menubtnDisable.png'
};

var tilesMapping = {
		land_type_image:[
		    {plist:"res/Units/tiles_urban.png", head:"#tub"},// TODO: 禁行，暂用城市代替
		    {plist:"res/Units/tiles_grass.png", head:"#tgs"},
		    {plist:"res/Units/tiles_forest.png", head:"#tfr"},
		    {plist:"res/Units/tiles_urban.png", head:"#tub"},
		    {plist:"res/Units/tiles_river.png", head:"#trv"},
		    {plist:"res/Units/tiles_water.png", head:"#twt"}
		]
};